package com.zhao.modleclass.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by Administrator on 2016/12/6.
 */

public class HP_VPAdapter extends FragmentPagerAdapter{
    private List<Fragment> mlist;

    public HP_VPAdapter(FragmentManager fm,List<Fragment> list) {
        super(fm);
        this.mlist=list;
    }


    @Override
    public Fragment getItem(int position) {
        return mlist.get(position);
    }

    @Override
    public int getCount() {
        return mlist.size();
    }
}
